Hello Hraban,
I puzzled a while. To me the —arguments= option does not work. I saw then on
the Wiki, that one can also add documentarguments as —schema=2UP
—numberofpages=16.
I further changed to \startdocument … \stopdocument.
Please look at the attached file
Willi
impositiontest-2.tex
) ;
aa = Section(ascender, oo) ;
% Devolver posicion final con espacio para siguiente renglon
aa + nib*2
enddef ;
% Llenar la página con renglones
for i=1 upto availableLines :
start := Line(dsc, asc, med, start) ;
endfor ;
\stopreusableMPgraphic
\startdocument
\startstan
eargument]
\setupnotation[question][counter=]
\startdocument
\startcolumns[n=2, balanced]
\dorecurse{19}{
\question{1. This is a question for discussion. I wished it was on the current page instead of the end}
\input{knuth}
}
\stopcolumns
\stopdocument
mwe.pdf
Description: Adobe PDF
]
\setcounter
[userpage]
[0]
\setuppagenumbering
[location=]
\startdocument
\setupfooter[state=stop]
\startfrontmatter
frontpage
\stopfrontmatter
\setupfooter[state=start]
\startbodymatter
\dorecurse{10}{\samplefile{lorem}}
\stopbodymatter
\stopdocument
\setupfootertexts
[title
]
\setuppagenumbering
[location=]
\startdocument
\setupfooter[state=stop]
\startfrontmatter
frontpage
\stopfrontmatter
\setupfooter[state=start]
\startbodymatter
\dorecurse{10}{\samplefile{lorem}}
\stopbodymatter
\stopdocument
...
\stopbuffer
\startbuffer spanish
...
\stopbuffer
\startsetups [document:stop]
...
\stopsetups
\startdocument
[spanisabstract={\getbuffer[spanish]},
]
...
\stopdocument
untested, just keyed
(e.g. startdocument/stopdocument or
startproduct/stopproduct).
Replace cont-yes.mkiv with the newer equivalent. And you're right though.
\starttext is not even needed most of the times.
And now it gets even worse, see
https://meeting.contextgarden.net/2021/talks/2021-09-21/starttext.pdf
why
}}
% \quad
% \imghref
% {\externalfigure[gscholar.pdf][logo]}
% {\datasetvariable{autores}{\recurselevel}{nombre}}
% \quad
% \datasetvariable{autores}{\recurselevel}{nombre}\par
% \stopsetups
Just loop over the set and call up the variables in the setup:
% \startdocument
[gscholar.pdf][logo]}
{\userdataparameter{gscholar}}
\quad
\userdataparameter{author}\par
\stopsetups
\defineuserdata[idautor][alternative=idautor]
\startdocument
% I have to manually set the length of the dataset in the loop and use
recurselevel...
% Maybe there is a way to use the length
Alan Braslau via ntg-context schrieb am 06.07.2023 um 09:34:
Hello,
Trying to use:
\startdocument
\startpagefigure[Coverpages.pdf][page=1]\stoppagefigure
\startpagefigure[Coverpages.pdf][page=2]\stoppagefigure
% before
\startmakeup [titlepage]
front
\stopmakeup
\startmakeup [titlepage
Am 06.07.23 um 11:58 schrieb Alan Braslau:
Maybe it’s also a problem of \startdocument – I always get a first
empty page and don’t understand why.
One gets an empty first page if there is *any* text content anywhere in
the setups or environment files before the \startdocument.
My problem
up[cover][page][page=no,doublesided=no]
\definelayout[cover][page]
\startmakeup [cover]
\filterpages[Coverpages][1]
\stoppagemakeup
\startmakeup [cover]
\filterpages[Coverpages][2]
\stoppagemakeup
Thank you for your suggestion!
Maybe it’s also a problem of \startdoc
Hi,
if I use \startdocument, the setups "document:start" and "document:stop"
get inserted at the beginning and end. But if I define my own document,
it doesn’t work. What’s wrong?
"""
\definedocument[presentation]
\startsetups[presentation:start]
{\bfd\d
]
?
Maybe it’s also a problem of \startdocument – I always get a first empty
page and don’t understand why.
Hraban
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-co
Hello,
Trying to use:
\startdocument
\startpagefigure[Coverpages.pdf][page=1]\stoppagefigure
\startpagefigure[Coverpages.pdf][page=2]\stoppagefigure
% before
\startmakeup [titlepage]
front
\stopmakeup
\startmakeup [titlepage]
back
\stopmakeup
\startfrontmatter
...
\stopfrontmatter
.
My first attempt (did not work)
\startsetups[headertext]
\startdocument
[metadata:title={Regulations}]
\stopsetups
\setupheadertexts
[ ] [{\getmarking[chapter]\hskip1em \pagenumber}]
[{\pagenumber \hskip1em \setup{headertext}}] [ ]
My second attempt (quite crass, but it works
On 1/30/2023 1:14 AM, jbf via ntg-context wrote:
Am trying to understand how best to change the title metadata in
headertext halfway through a document that has two parts: Constitutions
and Regulations.
My first attempt (did not work)
\startsetups[headertext]
\startdocument
[metadata:title
Am trying to understand how best to change the title metadata in
headertext halfway through a document that has two parts: Constitutions
and Regulations.
My first attempt (did not work)
\startsetups[headertext]
\startdocument
[metadata:title={Regulations}]
\stopsetups
\setupheadertexts
stopbuffer
\startxmlsetups xml:xhtml
\xmlsetsetup{\xmldocument}{*}{-}
\xmlsetsetup{\xmldocument}{html|p|em}{xml:*}\stopxmlsetups
\startxmlsetups xml:html
\startdocument
\xmlflush{#1}
\stopdocument\stopxmlsetups
% Paragraphs are followed by a paragraph break, but only if
mldocument}{*}{-}
\xmlsetsetup{\xmldocument}{html|p|em}{xml:*}\stopxmlsetups
\startxmlsetups xml:html
\startdocument
\xmlflush{#1}
\stopdocument\stopxmlsetups
% Paragraphs are followed by a paragraph break, but only if not
nested.\startxmlsetups xml:p
\xmlfunction{#1}{p}
\par\sto
]
\startdocument
\starttext
\input lorem
\stoptext
\stopdocument
When I create a pdf from LibreOffice with these fonts I have a good display.
pdffonts shows different font inclusion:
pdffonts libreoffice.pdf
name type encoding
emb sub uni object ID
I found a way to wrap everything before \startdocument, so I think this
looks like a template more or less:
In case anyone is interested, here's the MWE:
\definenote[address]
\setupnote[address][rule=off,location=text]
\setupnotation[footnote][numberconversion=numerals]
\definenote
:setup
\xmlsetsetup{\xmldocument}{*}{-}
\xmlsetsetup{\xmldocument}{document|p}{xml:*}
\stopxmlsetups
\xmlregistersetup{xml:setup}
\startxmlsetups xml:document
\xmlfilter{#1}{/title/command(xml:title)}
\xmlfilter{#1}{/author/command(xml:author)}
\startdocument
\xmlflush{#1}
\stopdocument
\
] [page=no]
\startdocument [title={Dummy title}]
\dorecurse{5}
{\startchapter[title={Chapter \convertnumber{word}{#1}}]
\samplefile{lorem}
\stopchapter}
\stopdocument
Wolfgang
___
If your question
> > \setupdocument[metadata:author={\xmlatt{#1}{content}}]
> > \setupinteraction[author={\documentvariable{author}}] \stopxmlsetups %
> > How can this be generalized? %\startxmlsetups xml:journal
> > %\setupdocument[journal={\xmlatt{#1}{content}}] %\stopxmlsetups
> > \
zed? %\startxmlsetups xml:journal
%\setupdocument[journal={\xmlatt{#1}{content}}] %\stopxmlsetups
\startxmlsetups xml:body \startdocument Author:
\documentvariable{author} \par Journal: \documentvariable{journal}
\stopdocument \stopxmlsetups \xmlprocessbuffer{main}{xdoc}{}|
\startxmlsetups xml:set
nt}}]%\stopxmlsetups
\startxmlsetups xml:body
\startdocument
Author: \documentvariable{author}
\par
Journal: \documentvariable{journal}
\stopdocument\stopxmlsetups
\xmlprocessbuffer{main}{xdoc}{}
Thank you!
___
Hi Wolfgang,
Pablo's solution works, but I tried yours without success. Here are the
main lines of my project
begin product
\startproduct[terminale-manual]
\project[terminale-environment]
\startdocument
\startfrontmatter
...
\stopfrontmatter
\startbodymatter
\component
but it's also possible to load it before
them. There are reasons for both positions and when you choose
one you should keep it for all files.
4. \startdocument
In my product file I added a document-environment, while it
isn't necessary in this case it provides a nice hook to insert
a title page
header]
\setupxtable[mytable:header]
[
foregroundstyle=\bf,
foregroundcolor=darkred,
]
% ==
\startdocument
\dorecurse{2} {
\input tufte
\vskip7mm
}
\startxtable[mytable]
\startxtablehead
\startxrow[mytable:header]
\startxcell Some Header \stopxcell
\st
eally used, but no
overhead either).
(2) Another change is in the \startdocument mechanism. This (already old
and rusted) wrapper runs on top of variables but we think no one knows
(or uses) that. So, it now is a real wrapper with inheritance and such.
It is dedicated to Tomas Hala who had to struggle wi
the header (title of the book) on the verso pages, which is
drawn from the simple statement:
\startdocument
[metadata:title={Book title}]
Shouldn't \setupheader affect both headers? Or is it possible I have
left something out of my \setupheader declaration?
A minimal example will make
but it doesn't seem
Better to use style={\switchtobodyfont[10pt,ss]} or
\switchtobodyfont[10pt]\ss...
> to affect the header (title of the book) on the verso pages, which is
> drawn from the simple statement:
>
> \startdocument
> [metadata:title={Book title}]
>
> Shouldn
of the book) on the verso pages, which is
drawn from the simple statement:
\startdocument
[metadata:title={Book title}]
Shouldn't \setupheader affect both headers? Or is it possible I have
left something out of my \setupheader declaration?
Julian
On 4/9/20 5:30 am, Otared Kavian wrote:
Hi Julian
}},
metadata:author={\documentvariable{author}},
metadata:keywords={\documentvariable{keywords}}]
\startdocument [title={My title}]
\input knuth
\stopdocument
end example
Wolfgang
Thank you, Wolfgang.
The above example does work. It fails to set the metadata if one moves the \setupdocument
metadata:author={\documentvariable{author}},
>>> metadata:keywords={\documentvariable{keywords}}]
>>>
>>> \startdocument [title={My title}]
>>> \input knuth
>>> \stopdocument
>>> end example
>>>
>>> Wolfgang
>>
&
[metadata:title={\documentvariable{title}},
metadata:subtitle={\documentvariable{subtitle}},
metadata:author={\documentvariable{author}},
metadata:keywords={\documentvariable{keywords}}]
\startdocument [title={My title}]
\input knuth
\stopdocument
end example
Wolfgang
Thank you, Wolfgang
}},
metadata:subtitle={\documentvariable{subtitle}},
metadata:author={\documentvariable{author}},
metadata:keywords={\documentvariable{keywords}}]
\startdocument [title={My title}]
\input knuth
\stopdocument
end example
Wolfgang
Thank you, Wolfgang.
The above example does work. It fails
}},
metadata:keywords={\documentvariable{keywords}}]
\stopenvironment
and correct use would be
\environment MYENVIRONMENT
\startdocument [title={My title}]
\stopdocument
because, of course, the environment contains more than \setupdocument
such as font loading that should be done before
}}]
\stopenvironment
and correct use would be
\environment MYENVIRONMENT
\startdocument [title={My title}]
\stopdocument
because, of course, the environment contains more than \setupdocument
such as font loading that should be done before the \startdocument.
The metadata does not get set
gt; %-- Working example, but it is not what I need --
> > \setupindenting[yes,small]
> > \defineconversion[mymix][1,\m{*},2]
> >
>
> \setupnotation[footnote][align={hz,hanging},indenting={yes,small,next},numberconversion=mymix]
> >
>
upnotation[footnote][align={hz,hanging},indenting={yes,small,next},numberconversion=mymix]
\startdocument
This is the first sentence with a footnote.\footnote{This is the
first footnote and its mark is "1".}
This is the second sentence with a footnote.\footnote{This is the
small,next},numberconversion=mymix]
\startdocument
This is the first sentence with a footnote.\footnote{This is the first
footnote and its mark is "1".}
This is the second sentence with a footnote.\footnote{This is the second
footnote and its mark is "*". }
This is the third sent
Hi,
I cannot make \beginBLOCKS and \endBLOCKS work in a \dorecurse loop. Is
it possible?
Here is a minimum non working exemple (from
https://wiki.contextgarden.net/Command/defineblock):
%%
\startdocument
\defineblock[question]
\hideblocks[question] % We don't want to print blocks where we
t[pagella]
> \setupbodyfont[pagella,12pt]
I would say that the first line isn’t required.
> \setupcolors[state=start]
If I’m not wrong, this is also the default.
> \setupfootertexts[section][]
This might be what you need:
\setupfootertexts[section][\getvariable{document}{metad
pcombinedlist[content][level=1]
\setupexternalfigures[directory={images}]
\startdocument[
metadata:title={MkIV Context Notes},
metadata:subtitle={},
metadata:subject={MkIV Context},
affiliation=Context]
\starttext
\startfrontmatter
\title{MkIV \CONTEXT\ Notes.}
\startcolumns[n=2]
\input zapf
\st
Jeroen schrieb am 29.09.2019 um 20:36:
This is the main file.
Neither minimal nor complete and \stopdocument is also missing.
\environment mkivcnotesenv
\startdocument
[metadata:subject={MkIV Context},
affiliation=Context]
\starttext
\startfrontmatter
\input{frontpage.tex}
\stopfrontmatter
This is the main file.
\environment mkivcnotesenv
\startdocument
[metadata:subject={MkIV Context},
affiliation=Context]
\starttext
\startfrontmatter
\input{frontpage.tex}
\stopfrontmatter
\startbodymatter
\section{Introduction}
\dorecurse{10}{input knuth}
\stopbodymatter
\startappendices
option work. If I first define a
named rendering with '\definebtxrendering', the 'sorttype' is correctly
read... Don't know why it doesn't work with the default rendering.
> % test-biblio.tex
> \usebtxdataset[biblio.bib]
\definebtxrendering[example]
\setupbtxrendering[example][sorttype=index]
]
\setupbtxrendering[sorttype=index]
\startdocument
\startchapter[title=First chapter]
\input ward \cite[ward,knuth]\blank
\placelistofpublications
\stopchapter
ftframe=on,
rulethickness=.1em,
framecolor=red]
\startdocument
\startchapter[title=A chapter]
\input knuth \cite[knuth]\blank
\input ward \cite[ward]\blank
\placelistofpublications[criterium=chapter]
\stopchapter
\stopdocument
% end
% biblio.bib
@book{knut
'non' working example (in
the second chapter, ward reference should be numbered 1 and knuth should be 2,
following the order of appearence in the bibliography list):
% mnwe.tex
\usebtxdataset[biblio.bib]
\setupbtxrendering
[repeat=yes,
continue=no,
method=local]
\startdocument
ber.
> > ... it's not a godo idea to use that hook to add content
> > I'm not adding content, it was just for the MWE. I'll post another
> > thread about what I intend to achieve.
>
> When you use \startdocument you can use
>
> \startsetups [document:start]
>
Marco Patzer schrieb am 27.11.18 um 18:34:
On Tue, 27 Nov 2018 18:21:45 +0100
Hans Hagen wrote:
MWE:
\startcomponent *
\appendtoks Foobar \to\everystarttext
\startdocument\null\stopdocument
\stopcomponent
If the first and last line is commented out, it prints “Foobar”,
when
On Tue, 27 Nov 2018 18:21:45 +0100
Hans Hagen wrote:
> > MWE:
> >
> > \startcomponent *
> >\appendtoks Foobar \to\everystarttext
> >\startdocument\null\stopdocument
> > \stopcomponent
> >
> > If the first and last line is comm
?
MWE:
\startcomponent *
\appendtoks Foobar \to\everystarttext
\startdocument\null\stopdocument
\stopcomponent
If the first and last line is commented out, it prints “Foobar”,
when compiled as a component it doesn't.
it kicks in when context things a text starts (so earler in this case
\to\everystarttext
\startdocument\null\stopdocument
\stopcomponent
If the first and last line is commented out, it prints “Foobar”,
when compiled as a component it doesn't.
Marco
___
If your question is of interest
text etc. at the begin and end of the document (which can be
used to insert a titlepage or endpage). You can even use \startdocument (or
\setupdocument) to set the document name in the pdf viewer (yes it can also be
done with \setupinteraction but \startdocument is nicer).
A minimal file would
can be
> used to insert a titlepage or endpage). You can even use \startdocument (or
> \setupdocument) to set the document name in the pdf viewer (yes it can also
> be done with \setupinteraction but \startdocument is nicer).
>
> A minimal file would be
>
> \star
content in a document environment which
has hooks to insert text etc. at the begin and end of the document
(which can be used to insert a titlepage or endpage). You can even use
\startdocument (or \setupdocument) to set the document name in the pdf
viewer (yes it can also be done
\startxmlsetups [xml:testsetups]
\xmlsetsetup{\xmldocument}{document}{xml:*}
\stopxmlsetups
\xmlregistersetup{xml:testsetups}
\startxmlsetups [xml:document]
\mainlanguage[\xmlatt{#1}{language}]
\startdocument
\xmlflush{#1}
\stopdocument
\stopxmlsetups
% The “document:start” setup
he distribution there are a lot of manuals of which the setup
# demonstrates ways to organize ... one probably not known to all is
#
# \startdocument[settings] ... \stopdocument
ok, where can I find it?
The thing I am a bit confused and which was the main reason of my question,
is why the compiler
ganize ... one probably not known to all is
\startdocument[settings] ... \stopdocument
Hans
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
te
ext]
[background={PageShape}]
\starttext
\setupdocument[title={Title},location={Place}]
\startdocument
\definecolor[BackgroundColor][r=0,g=.7,b=0]
\startTopic[title={Topic Green}]
Some text A
\startSubject[title={Some green 1}]
more text B
\stopSubject
\st
olor
contrastcolor ;
fi ;
StopPage ;
\stopuseMPgraphic
\setupbackgrounds
[text]
[background={PageShape}]
\starttext
\setupdocument[title={Title},location={Place}]
\startdocument
\definecolor[BackgroundColor][r=0,g=.7,b=0]
\startTopic[title={Topic Green}]
Some text A
\start
]
[style=\bigbodyfont\bold, alternative=b,]
\setuplist [section]
[width=2.0em, margin=2.0em, alternative=c,]
\setuplist [subsection]
[width=3.0em, margin=4.0em, style=slanted, alternative=c,]
\startdocument
\startfrontmatter
\placecontent[criterium=all]
\stopfrontmatter
mn
>> until the column doesn't generate orphan/widow
>>
>> Is this possible with ConTeXt/LuaTeX?
>
> maybe be more explicit with very large penalties helps
>
> \startdocument
>
> \showmakeup[penalty]
>
> [...]
>
> \stopdocument
Thanks, Hans, that's a ver
repeat
adjust parameters (column width, looseness, ...)
typeset column
until the column doesn't generate orphan/widow
Is this possible with ConTeXt/LuaTeX?
maybe be more explicit with very large penalties helps
\startdocument
\showmakeup[penalty]
\startbuffer
\dorecurse{30}{
\widowp
lties]
\righthyphenmin=60
\lefthyphenmin=60
\def\Sblackbold#1{{\bf #1}}
\def\Sdef#1{{#1}}
\def\Sdefrf#1{{\bf #1}}
\def\ShwJNR#1{{\blue\bf #1}}
\def\Spospsmallcaps#1{{\sc #1}}
\def\Spunctuation#1{{#1}}
\def\Sxrefxrhw#1{{\bf #1}}
\def\Sgroupintro#1{{\it #1}}
\def\threeentries{
\vbox{\hsize=\textwidth
in=60
\lefthyphenmin=60
\def\Sblackbold#1{{\bf #1}}
\def\Sdef#1{{#1}}
\def\Sdefrf#1{{\bf #1}}
\def\ShwJNR#1{{\blue\bf #1}}
\def\Spospsmallcaps#1{{\sc #1}}
\def\Spunctuation#1{{#1}}
\def\Sxrefxrhw#1{{\bf #1}}
\def\Sgroupintro#1{{\it #1}}
\def\threeentries{\ShwJNR{headphones}\page[no]\par\-\hskip .5em
pintro#1{{\it #1}}
\def\threeentries{\ShwJNR{headphones}\page[no]\par\-\hskip
.5em\Spospsmallcaps{noun}\Spunctuation{ }\Sdef{a pair of small
speakers that you wear over your
ears}\par\ShwJNR{heard}\page[no]\par\-\hskip
.5em\Spospsmallcaps{verb}\Spunctuation{ }\Sgroupintro{the past tense
and past
On 1/24/2017 8:53 PM, Henri Menke wrote:
Dear devs,
It is really convenient to set PDF metadata in \startdocument, however I
noticed that there is a bug. The PDF subject is not set using metadata:subject
but with metadata:subtitle. This is not a big issue by itself but merely a
little
Dear devs,
It is really convenient to set PDF metadata in \startdocument, however I
noticed that there is a bug. The PDF subject is not set using metadata:subject
but with metadata:subtitle. This is not a big issue by itself but merely a
little confusing. What’s worse is that using
gt;metadata:doi={doi:\documentvariable{doi}},
>metadata:keywords={\documentvariable{keywords}}]
>
> \startdocument
> [title={Your title},
>subtitle={your subtitle},
>author={your name},
>address={your address},
>keywords={your keywo
={\documentvariable{keywords}}]
\startdocument
[title={Your title},
subtitle={your subtitle},
author={your name},
address={your address},
keywords={your keywords},
abstract={The abstract goes here.\par
The Abstract and the keywords have to fit in this page.},
year={2016},
doi
e=\documentvariable{title}]
> > \mainlanguage [sv]
> >
> > \startdocument [title={\translate[en=Foo, sv=Bar]}]
> >\input knuth
> > \stopdocument
> >
> > This literally shows:
> >
> >Title: \translate [en=Foo, sv=Bar]
> >
>
On 3/4/2016 7:58 AM, Marco Patzer wrote:
Hi!
How to expand \translate so that it doesn't show up in the PDF
metadata? Example:
\setupdocument [metadata:title=\documentvariable{title}]
\mainlanguage [sv]
\startdocument [title={\translate[en=Foo, sv=Bar]}]
\input knuth
\stopdocument
; It depends, when you want the title in the pdf without a manual
> setting with \setupinteraction you can use the value of
> “metadata:title” in your document.
Thanks, again, these are useful pointers.
In conclusion, good practice could be (but would this work?):
\startdocument
[
Alan BRASLAU <mailto:alan.bras...@cea.fr>
17. Januar 2016 um 23:39
On Sun, 17 Jan 2016 20:09:56 +0100
Thanks, again, these are useful pointers.
In conclusion, good practice could be (but would this work?):
\startdocument
[title=My title,
metadata:title=\documentvariable{title},
aut
Alan BRASLAU <mailto:alan.bras...@cea.fr>
17. Januar 2016 um 19:55
On Sun, 17 Jan 2016 19:27:31 +0100
How does this play with
\startdocument
[title=Document title,
author=Me]
It doesn’t matter if you set the values with \setupdocument or
\startdocument.
Here, I learn about metadata
ur document with \documentvariable{}.
>
> \setupdocument
>[ metadata:title=Document title,
> metadata:author=Author name]
>
> \setupinteraction[state=start]
>
> \starttext
> \unknown
> \stoptext
>
> Wolfgang
How does this play with
\startdocument
[tit
[bidi=global]
\setupalign[righttoleft]
\def\text{(ب)}
\startdocument
\text\footnote{\text}.
\stopdocument
gives the correct order in the text but the parenthesis are not adapted in the
footnote.
So in the text I get: (ب)
And in the footnote: )ب(.
You have to set
]
\setmainfont[amiri][features=arabic,range=arabic]
\setupdirections[bidi=global]
\setupalign[righttoleft]
\def\text{(ب)}
\startdocument
\text\footnote{\text}.
\stopdocument
gives the correct order in the text but the parenthesis are not adapted in
the
footnote
)}
\startdocument
\text\footnote{\text}.
\stopdocument
gives the correct order in the text but the parenthesis are not adapted in the
footnote.
So in the text I get: (ب)
And in the footnote: )ب(.
___
If your
On 2015-03-25 10:23, Hans Hagen wrote:
\startsetups [document:titlepage]
bla bla \documentvariable{title} bla bla
\stopsetups
\setupdocument
[before=\directsetup{document:titlepage}]
\startdocument[title=Some title]
...
\stopdocument
Thanks.
Can one always use
On 3/27/2015 11:27 PM, Sam Ḥilluc wrote:
On 2015-03-25 10:23, Hans Hagen wrote:
\startsetups [document:titlepage]
bla bla \documentvariable{title} bla bla
\stopsetups
\setupdocument
[before=\directsetup{document:titlepage}]
\startdocument[title=Some title]
...
\stopdocument
Thanks
\documentvariable{title} bla bla
\stopsetups
\setupdocument
[before=\directsetup{document:titlepage}]
\startdocument[title=Some title]
...
\stopdocument
-
Hans Hagen | PRAGMA ADE
]
\startTEXpage
\externalfigure [cow]
\stopTEXpage
\stopsetups
\startdocument
\input knuth
\stopdocument
Marco
signature.asc
Description: Digital signature
___
If your question is of interest to others as well
{document:after}]
\startsetups [document:after]
\startTEXpage
\externalfigure [cow]
\stopTEXpage
\stopsetups
\startdocument
\input knuth
\stopdocument
Even shorter:
\setupexternalfigures
[location=default]
\setupdocument
[after={\pagefigure[cow]}]
\startdocument
\input knuth
]
\setupdocument
[after=\setups{document:after}]
\startsetups [document:after]
\startTEXpage
\externalfigure [cow]
\stopTEXpage
\stopsetups
\startdocument
\input knuth
\stopdocument
Marco
OK... But - is there a solution more close and more Lua to that mine?
The example is much simpler than
is invited to take a break and grab a coffee. ;)
Section 2.2.
It is advisable to type the document setups before the \start--command, --
What start command? \starttext, perhaps?
\starttext, \startdocument, \startcomponent, etc.
Marco
signature.asc
Description: Digital signature
On 5/1/2013 8:50 AM, Romain Diss wrote:
Hi,
This is probably adressed to Hans.
Is it possible to add the support for metadata:keywords in \startdocument?
scrn-ini.mkvi l. 197
+++ \doifvariable{document}{metadata:keywords}
{\setupinteraction[\c!subject=\documentvariable{metadata:keywords
Hi,
This is probably adressed to Hans.
Is it possible to add the support for metadata:keywords in \startdocument?
scrn-ini.mkvi l. 197
+++ \doifvariable{document}{metadata:keywords}
{\setupinteraction[\c!subject=\documentvariable{metadata:keywords}]}%
Thank you in advance.
--
Romain Diss
there is
an example with \startdocument ... \stopdocument. But I don't
understand where I should use these commands. From the source,
it looks like \starttex ... \stoptext with the ability to register
a before and after command. I am under the impression that I have
to choose between using
]
\unexpanded\def\MyChapterTitle#1#2%
{\framed
[offset=overlay,
frame=off,
width=\textwidth,
align={middle,lohi}]
{#1\blank#2}}
\setuphead
[chapter]
[header=high,
command=\MyChapterTitle,
style=\bfc,
numberstyle=\bfb]
\setuplabeltext
[chapter=Chapter~]
\startdocument
to typeset document title
\stopsetups
\setupdocument
[title={...},
author={...},
date={...},
]
\startdocument
\stopdocument
rather than the different custom solutions that are floating around.
Aditya
{\ctxlua{…}%
\stoptext}
and use them instead of \starttext and \stoptext.
Or you use the predefined document environment which has before and after keys.
\setupdocument[after={\blank\midaligned{\bf THE END}}]
\startdocument
\input knuth
\stopdocument
Wolfgang
=yes,xhtml=yes,css=yes]
\startsetups document:start
\settaggedmetadata[title=\documentvariable{title}]
\stopsetups
\startdocument
[title=This document title is wrapped in section-tags]
\startsection[title=test]
\startparagraph
\input tufte
\stopparagraph
\stopsection
\stopdocument
Hi Hans,
todays beta breaks the following example. It worked the day before yesterday.
\setupbackend[export=yes]
\definehighlight[Title][color=red]
\startsetups document:start
\Title{\documentvariable{title}}
\stopsetups
\startdocument [title=Test]
some text
\stopdocument
Thank you
info in the tuc file.
No big deal, just another format.
== There has been a fix in otf contextual stuff ... for Idris (so that
he can finish the context book sooner).
== There are some new commands: \startdocument and \stopdocument. Copied
from mag-1101:
\starttyping
\startdocument[settings
1 - 100 of 103 matches
Mail list logo